/*** 
 * @Date: 2020-07-10 15:51:13
 * @LastEditors: leehave
 * @LastEditTime: 2020-09-09 16:06:44
 */
import Vue from 'vue'
import 'lib-flexible'
import FastClick from 'fastclick'
import defaultSettings from '../setting'
const { NODE_ENV } = process.env
import '@/core/component_use'
import '@/assets/less/common.less' // 引入公共样式

import '@/utils/permission' // 权限校验


const IS_DEV = NODE_ENV !== 'production'
const { enableMock, showVconsole, enableSentry } = defaultSettings


// if (IS_DEV && enableSentry) {
  

//   // 全局监控 Vue errorHandler
//   Vue.config.errorHandler = (error, vm, info) => {
//     window.$sentry.log({
//       error,
//       type: 'vue errorHandler',
//       vm,
//       info
//     })
//   }
// }

// 解决移动端点击300ms延时
FastClick.attach(document.body)

// if (showVconsole) {
//   const VConsole = require('vconsole')
//   console.log('vconsole install success')
//   // eslint-disable-next-line
//     const v_console = new VConsole()
// }
